<template>
  <div style="padding:0.3rem 0.6rem" @click="selectSlideUp2">
    <div class="IntelligentClassification">
      <keep-alive>
        <router-view></router-view>
      </keep-alive>
    </div>
  </div>
</template>

<script>
  import common from '../common/js/common'
  import bus from '../common/js/bus'
  var yxBigClass;
  var echarts = require('echarts');
  export default {
    data() {
      return {
        isActive:1,
        selectListName: [
          'query_get_item_big_class',
          'query_get_item_small_class',
          'query_get_item',
          'query_get_plan_class',
          'query_get_item_category',
          'query_get_buyer',
          'query_get_sourcing',
          'query_get_planner',
          'query_get_vendor'
        ],
      }
    },
    watch:{

    },
    mounted() {
    },
    created() {
    },
    methods: {
      selectSlideUp2: function () {
        var _self=this;
        for(var i=0;i<_self.selectListName.length;i++){
          var yx=_self.selectListName[i];
          _self[yx]=false;
        }
      },
    },
    beforeRouteLeave(to,from,next){
      sessionStorage.removeItem('yxBigClass');
      sessionStorage.removeItem('yxSmallClass');
      sessionStorage.removeItem('yxItemClass');
      sessionStorage.removeItem('yxPlanClass');
      sessionStorage.removeItem('yxCategoryClass');
      sessionStorage.removeItem('yxBuyerClass');
      sessionStorage.removeItem('yxSourcingClass');
      sessionStorage.removeItem('yxPlannerClass');
      next();
    }
  }
</script>

<style>
  @import "../common/css/base.css";
  @import "../common/css/yx.less";
</style>
